//
//  SSPTabsCellModel.m
//  EnvironmentalProtection
//
//  Created by HCreater on 2018/10/30.
//  Copyright © 2018年 HCreater. All rights reserved.
//

#import "SSPTabsCellModel.h"

@interface SSPTabsCellModel ()

@end

@implementation SSPTabsCellModel

- (instancetype)initWithData:(NSString *)data cellHeight:(CGFloat)cellHeight
{
    self = [super init];
    if (self)
    {
        //        _epInfoData = data;
        
        _tabIndex = 0;
        
        _data = data;
        
        /// cellHeight+2（2容错）
        _cellHeight = MHUIScaleValue(cellHeight)+2;
        
        _tabsCommand = [[RACCommand alloc] initWithSignalBlock:^RACSignal *(id input)
        {
            return [RACSignal createSignal:^RACDisposable *(id<RACSubscriber> subscriber) {
                
                [subscriber sendNext:input];
                [subscriber sendCompleted];
                
                return nil;
            }];
        }];
    }
    
    return self;
}

@end
